import request from '@/utils/request'
import { objectToFormData } from '@/utils/form'

export function findSceneRendererList(params) {
  return request({
    url: '/51world/scene/renderer/findList',
    method: 'get',
    params:params
  })
}

export function saveSceneRenderer(params) {
  return request({
    url: '/51world/scene/renderer/save',
    method: 'post',
    data: objectToFormData(params)
  })
}

export function deleteSceneRendererById(params) {
  return request({
    url: '/51world/scene/renderer/deleteById',
    method: 'get',
    params:params
  })
}
